/**
 * Copyright &copy; 2016 splat  All rights reserved.
 */
package com.osig.sys.security;

import javax.servlet.http.Cookie;
import com.user.entity.emp.EmpVO;


/**
 * 用户和密码（包含验证码）令牌类
 * @author splat
 * @version 2013-5-19
 */
public class UsernamePasswordToken extends org.apache.shiro.authc.UsernamePasswordToken {

	private static final long serialVersionUID = 1L;

	
	private EmpVO empV0;
	private String captcha;
	private boolean mobileLogin;
	private Cookie cookie;
	public UsernamePasswordToken() {
		super();
	}

	public UsernamePasswordToken(EmpVO empVO){
		this.empV0 = empVO;
	}
	
	public UsernamePasswordToken(String username, char[] password,
			boolean rememberMe, String host, String captcha, boolean mobileLogin) {
		super(username, password, rememberMe, host);
		this.captcha = captcha;
		this.mobileLogin = mobileLogin;
	}

	public String getCaptcha() {
		return captcha;
	}

	public void setCaptcha(String captcha) {
		this.captcha = captcha;
	}

	public boolean isMobileLogin() {
		return mobileLogin;
	}

	public Cookie getCookie() {
		return cookie;
	}

	public void setCookie(Cookie cookie) {
		this.cookie = cookie;
	}

	public EmpVO getEmpV0() {
		return empV0;
	}

	public void setEmpV0(EmpVO empV0) {
		this.empV0 = empV0;
	}
	
}